<?php
class TdComponent extends TdRenderer {
  public $id;
  public $cssclass;

  function __construct($id, $template="") {
    global $teardrop;

    $this->id = $id;
    if ($template != "") {
      parent::__construct($template);
    }
    else {
      $tpl = strtolower(get_class($this));
      parent::__construct($teardrop->sysroot."/lib/components/".$tpl.".phtml");
    }
  }
  
  function setId($value) {
  	$this->$id = $value;
  }
  
  function getId() {
  	return $this->id;
  }
  function setClass($value) {
  	$this->cssclass = $value;
  }
  
  function getClass() {
  	return $this->cssclass;
  }
}
?>
